package com.maiji.cloud.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.DietLog;

@Mapper
public interface DietLogMapper extends BaseMapper<DietLog>{
	/**
	 * 获得饮食记录
	 * @param userId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	public List<DietLog> getDietLogByUserId(@Param("userId") String userId,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
	/**
	 * 根据时间获取
	 * @param userId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	public List<DietLog> getDietLogDaysByTime(@Param("userId") String userId,@Param("startTime")String startTime,@Param("endTime")String endTime);

}
